package com.green.common.fusionchart;

import java.util.List;

import com.green.common.fusionchart.enums.ToObjectEnum;

public class Apply {
	
	private ToObjectEnum toObject;
	
	private String styles;

	public ToObjectEnum getToObject() {
		return toObject;
	}

	public void setToObject(ToObjectEnum toObject) {
		this.toObject = toObject;
	}

	public String getStyles() {
		return styles;
	}

	public void setStyles(List<Style> styles) {
		if(styles != null && styles.size() !=0){
			String str = "";
			for(Style style : styles){
				str += style.getName() + ",";
			}
			this.styles = str.substring(0, str.length() -1);
		}
	}
	
	public void setStyles(Style style){
		this.styles = style.getName();
	}
	
}
